/*
*    Author : heiden deng(dengjianquan@beyondcent.com)
*    2017/06/13
*    version 0.0.9
*    配置文件字段常量
*/

#ifndef HTSC_GRPC_PROPERTIES_CONSTANTS_H
#define HTSC_GRPC_PROPERTIES_CONSTANTS_H

#ifdef __cplusplus
extern "C" {
#endif

#define HTSC_GRPC_PROPERTIES_COMMON_APP				"common.application"
#define HTSC_GRPC_PROPERTIES_COMMON_GRPC			"common.grpc"

#define HTSC_GRPC_PROPERTIES_P_VERSION				"provider.version"
#define HTSC_GRPC_PROPERTIES_P_SIDE					"provider.side"
#define HTSC_GRPC_PROPERTIES_P_MODULE				"provider.module"
#define HTSC_GRPC_PROPERTIES_P_GROUP				"provider.group"
#define HTSC_GRPC_PROPERTIES_P_DEFAULT_TIMEOUT		"provider.default.timeout"
#define HTSC_GRPC_PROPERTIES_P_DEFAULT_RETIES		"provider.default.reties"
#define HTSC_GRPC_PROPERTIES_P_DEFAULT_CONN			"provider.default.connections"
#define HTSC_GRPC_PROPERTIES_P_DEFAULT_REQ			"provider.default.requests"
#define HTSC_GRPC_PROPERTIES_P_DEFAULT_LB			"provider.default.loadbalance"
#define HTSC_GRPC_PROPERTIES_P_DEFAULT_ASYNC		"provider.default.async"
#define HTSC_GRPC_PROPERTIES_P_TOKEN				"provider.token"
#define HTSC_GRPC_PROPERTIES_P_DEPRECATED			"provider.deprecated"
#define HTSC_GRPC_PROPERTIES_P_DYNAMIC				"provider.dynamic"
#define HTSC_GRPC_PROPERTIES_P_ACCESSLOG			"provider.accesslog"
#define HTSC_GRPC_PROPERTIES_P_OWNER				"provider.owner"
#define HTSC_GRPC_PROPERTIES_P_WEIGHT				"provider.weight"
#define HTSC_GRPC_PROPERTIES_P_DEFAULT_CLUSTER		"provider.default.cluster"
#define HTSC_GRPC_PROPERTIES_P_APP_VERSION			"provider.application.version"
#define HTSC_GRPC_PROPERTIES_P_ORG					"provider.organization"
#define HTSC_GRPC_PROPERTIES_P_ENV					"provider.environment"
#define HTSC_GRPC_PROPERTIES_P_MOD_VER				"provider.module.version"
#define HTSC_GRPC_PROPERTIES_P_ANYHOST				"provider.anyhost"
#define HTSC_GRPC_PROPERTIES_P_DUBBO				"provider.dubbo"
#define HTSC_GRPC_PROPERTIES_P_ACCESS_PROTECTED		"provider.access.protected"

#define HTSC_GRPC_PROPERTIES_C_CHECK		    	"consumer.check"
#define HTSC_GRPC_PROPERTIES_C_DEFAULT_TIMEOUT		"consumer.default.timeout"
#define HTSC_GRPC_PROPERTIES_C_CATEGORY				"consumer.category"
#define HTSC_GRPC_PROPERTIES_C_SIDE				    "consumer.side"
#define HTSC_GRPC_PROPERTIES_C_SERVER_VER			"consumer.service.version"
#define HTSC_GRPC_PROPERTIES_C_APP_VERSION		    "consumer.application.version"
#define HTSC_GRPC_PROPERTIES_C_DEFUALT_REF_FILTER   "consumer.default.reference.filter"
#define HTSC_GRPC_PROPERTIES_C_LOGGER			    "consumer.logger"
#define HTSC_GRPC_PROPERTIES_C_OWNER			    "consumer.owner"
#define HTSC_GRPC_PROPERTIES_C_ORG				    "consumer.organization"
#define HTSC_GRPC_PROPERTIES_C_DEFAULT_RETRIES	    "consumer.default.retries"
#define HTSC_GRPC_PROPERTIES_C_LB_MODE              "consumer.loadbalance.mode"
#define HTSC_GRPC_PROPERTIES_C_DEFAULT_LB		    "consumer.default.loadbalance"
#define HTSC_GRPC_PROPERTIES_C_DFAULT_CLUSTER	    "consumer.default.cluster"

#define HTSC_GRPC_PROPERTIES_C_CONSUMER_SWITH_THRES "consumer.switchover.threshold"
#define HTSC_GRPC_PROPERTIES_C_CONSUMER_PUNISH_TIME "consumer.unavailable.provider.punish.time"

#define HTSC_GRPC_PROPERTIES_KFK_SERVERS			"kafka.sender.servers"
#define HTSC_GRPC_PROPERTIES_KFK_SAMPL				"kafka.sampling.frequency"
#define HTSC_GRPC_PROPERTIES_KFK_SEND_NUMS			"kafka.sender.number"

#ifdef __cplusplus
}
#endif

#endif // !HTSC_GRPC_PROPERTIES_CONSTANTS_H
